﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MemberCostList.aspx.cs" Inherits="ZHDJ.BranchCenter.Module.OrganizationalLife.MemberCostList" %>



<!DOCTYPE html>
<html>
<head runat="server">
    <title></title>
    <style>
        a {
            text-transform: none;
            text-decoration: none;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
        <f:PageManager ID="PageManager1" AutoSizePanelID="Panel1" runat="server" />
        <f:Panel ID="Panel1" runat="server" BodyPadding="5px"
            ShowBorder="false" Layout="VBox" BoxConfigAlign="Stretch"
            BoxConfigPosition="Start" ShowHeader="false" Title="">
            <Items>
                <f:Form ID="Form2" runat="server" Height="36px" BodyPadding="5px" ShowHeader="false"
                    ShowBorder="false">
                    <Rows>
                        <f:FormRow ID="FormRow1" runat="server">
                            <Items>
                                <f:DropDownList ID="ddlYear" LabelAlign="right" runat="server" Label="年" LabelWidth="30px">
                                </f:DropDownList>
                                <f:TriggerBoxPicker runat="server" ID="ppBranch" Label="所属组织" LabelWidth="70px" LabelAlign="Right"
                                    WindinsTitle="选择组织" WindinsHeight="450px" WindinsWidth="700px" ShowTrigger1="false" ShowEmptyLabel="true" EnableEdit="false"
                                    EmptyText="请选择组织" WindinsUrl="../../../Share/Picker/BranchSinglePicker.aspx" Trigger1Icon="Clear" AutoPostBack="true" OnTextChanged="ppBranch_TextChanged">
                                </f:TriggerBoxPicker>
                                <f:TextBox ID="txtUserName" runat="server" Label="党员" LabelAlign="right" LabelWidth="50px"></f:TextBox>
                                <f:Button ID="btnSearch" runat="server" Text="搜索" OnClick="btnSearch_Click" Icon="SystemSearch"></f:Button>
                            </Items>
                        </f:FormRow>
                    </Rows>
                </f:Form>
                <f:Grid ID="Grid1" runat="server" BoxFlex="1" ShowBorder="true" ShowHeader="false"
                    EnableCheckBoxSelect="true" DataKeyNames="ID" AllowSorting="false"
                    SortField="ID" SortDirection="DESC" AllowPaging="true"
                    IsDatabasePaging="true"
                    OnPageIndexChange="Grid1_PageIndexChange">
                    <Toolbars>
                        <f:Toolbar ID="Toolbar1" runat="server">
                            <Items>
                                <f:ToolbarFill ID="ToolbarFill1" runat="server">
                                </f:ToolbarFill>
                                <f:Button ID="btnExport" runat="server" Icon="PageExcel" OnClick="btnExport_Click" Text="导出">
                                </f:Button>
                            </Items>
                        </f:Toolbar>
                    </Toolbars>
                    <Columns>
                        <f:RowNumberField />
                        <f:BoundField DataField="UserName" ExpandUnusedSpace="true" HeaderText="姓名" />
                        <f:WindowField ColumnID="editFieldBade" DataTextField="CostBaseDesc" TextAlign="Center"
                            HeaderText="党费基数" ToolTip="缴纳" WindowID="Window2"
                            DataIFrameUrlFields="UserID"
                            DataIFrameUrlFormatString="MemberCostBase.aspx?LoginID={0}"
                            Width="80px" />
                        <f:WindowField ColumnID="editField" DataTextField="M1Desc" TextAlign="Center" HeaderText="1月" ToolTip="缴纳" WindowID="Window1"
                            DataIFrameUrlFields="MID1,CurrentYear,UserID"
                            DataIFrameUrlFormatString="MemberCostEdit.aspx?id={0}&Month=1&Year={1}&LoginID={2}"
                            Width="70px" />
                        <f:WindowField ColumnID="editField2" DataTextField="M2Desc" TextAlign="Center" HeaderText="2月" ToolTip="缴纳" WindowID="Window1"
                            DataIFrameUrlFields="MID2,CurrentYear,UserID"
                            DataIFrameUrlFormatString="MemberCostEdit.aspx?id={0}&Month=2&Year={1}&LoginID={2}"
                            Width="70px" />
                        <f:WindowField ColumnID="editField3" DataTextField="M3Desc" TextAlign="Center" HeaderText="3月" ToolTip="缴纳" WindowID="Window1"
                            DataIFrameUrlFields="MID3,CurrentYear,UserID"
                            DataIFrameUrlFormatString="MemberCostEdit.aspx?id={0}&Month=3&Year={1}&LoginID={2}"
                            Width="70px" />
                        <f:WindowField ColumnID="editField4" DataTextField="M4Desc" TextAlign="Center" HeaderText="4月" ToolTip="缴纳" WindowID="Window1"
                            DataIFrameUrlFields="MID4,CurrentYear,UserID"
                            DataIFrameUrlFormatString="MemberCostEdit.aspx?id={0}&Month=4&Year={1}&LoginID={2}"
                            Width="70px" />
                        <f:WindowField ColumnID="editField5" DataTextField="M5Desc" TextAlign="Center" HeaderText="5月" ToolTip="缴纳" WindowID="Window1"
                            DataIFrameUrlFields="MID5,CurrentYear,UserID"
                            DataIFrameUrlFormatString="MemberCostEdit.aspx?id={0}&Month=5&Year={1}&LoginID={2}"
                            Width="70px" />
                        <f:WindowField ColumnID="editField6" DataTextField="M6Desc" TextAlign="Center" HeaderText="6月" ToolTip="缴纳" WindowID="Window1"
                            DataIFrameUrlFields="MID6,CurrentYear,UserID"
                            DataIFrameUrlFormatString="MemberCostEdit.aspx?id={0}&Month=6&Year={1}&LoginID={2}"
                            Width="70px" />
                        <f:WindowField ColumnID="editField7" DataTextField="M7Desc" TextAlign="Center" HeaderText="7月" ToolTip="缴纳" WindowID="Window1"
                            DataIFrameUrlFields="MID7,CurrentYear,UserID"
                            DataIFrameUrlFormatString="MemberCostEdit.aspx?id={0}&Month=7&Year={1}&LoginID={2}"
                            Width="70px" />
                        <f:WindowField ColumnID="editField8" DataTextField="M8Desc" TextAlign="Center" HeaderText="8月" ToolTip="缴纳" WindowID="Window1"
                            DataIFrameUrlFields="MID8,CurrentYear,UserID"
                            DataIFrameUrlFormatString="MemberCostEdit.aspx?id={0}&Month=8&Year={1}&LoginID={2}"
                            Width="70px">
                        </f:WindowField>
                        <f:WindowField ColumnID="editField9" DataTextField="M9Desc" TextAlign="Center" HeaderText="9月" ToolTip="缴纳" WindowID="Window1"
                            DataIFrameUrlFields="MID9,CurrentYear,UserID"
                            DataIFrameUrlFormatString="MemberCostEdit.aspx?id={0}&Month=9&Year={1}&LoginID={2}"
                            Width="70px" />
                        <f:WindowField ColumnID="editField10" DataTextField="M10Desc" TextAlign="Center" HeaderText="10月" ToolTip="缴纳" WindowID="Window1"
                            DataIFrameUrlFields="MID10,CurrentYear,UserID"
                            DataIFrameUrlFormatString="MemberCostEdit.aspx?id={0}&Month=10&Year={1}&LoginID={2}"
                            Width="70px" />
                        <f:WindowField ColumnID="editField11" DataTextField="M11Desc" TextAlign="Center" HeaderText="11月" ToolTip="缴纳" WindowID="Window1"
                            DataIFrameUrlFields="MID11,CurrentYear,UserID"
                            DataIFrameUrlFormatString="MemberCostEdit.aspx?id={0}&Month=11&Year={1}&LoginID={2}"
                            Width="70px" />
                        <f:WindowField ColumnID="editField12" DataTextField="M12Desc" TextAlign="Center" HeaderText="12月" ToolTip="缴纳" WindowID="Window1"
                            DataIFrameUrlFields="MID12,CurrentYear,UserID"
                            DataIFrameUrlFormatString="MemberCostEdit.aspx?id={0}&Month=12&Year={1}&LoginID={2}"
                            Width="70px" />
                        <f:BoundField DataField="Total" Width="70px" TextAlign="Center" HeaderText="汇总" />
                    </Columns>
                    <PageItems>
                        <f:ToolbarSeparator ID="ToolbarSeparator1" runat="server">
                        </f:ToolbarSeparator>
                        <f:ToolbarText ID="ToolbarText1" runat="server" Text="每页记录数：">
                        </f:ToolbarText>
                        <f:DropDownList ID="ddlGridPageSize" Width="80px" AutoPostBack="true" OnSelectedIndexChanged="ddlGridPageSize_SelectedIndexChanged"
                            runat="server">
                            <f:ListItem Text="10" Value="10" />
                            <f:ListItem Text="20" Value="20" />
                            <f:ListItem Text="50" Value="50" />
                            <f:ListItem Text="100" Value="100" />
                        </f:DropDownList>
                    </PageItems>
                </f:Grid>
                <f:Grid ID="GridTotal" runat="server" BoxFlex="1" ShowBorder="true" ShowHeader="false" EnableColumnLines="true"
                    EnableCheckBoxSelect="true" DataKeyNames="ID" AllowSorting="false" AllowColumnLocking="true"
                    SortField="ID" SortDirection="DESC" AllowPaging="true"
                    IsDatabasePaging="true"
                    OnPageIndexChange="Grid1_PageIndexChange">
                    <Toolbars>
                        <f:Toolbar ID="Toolbar2" runat="server">
                            <Items>

                                <f:ToolbarFill ID="ToolbarFill2" runat="server">
                                </f:ToolbarFill>
                                <f:Button ID="Button2" runat="server" Icon="PageExcel" OnClick="Button2_Click" Text="导出">
                                </f:Button>

                            </Items>
                        </f:Toolbar>
                    </Toolbars>
                    <Columns>
                        <f:RowNumberField />
                        <f:BoundField DataField="BranchName" Locked="true" Width="200px" HeaderText="组织名称" />
                        <f:BoundField DataField="BranchMemberCount" Locked="true" Width="80px" TextAlign="Center" HeaderText="党员总数" />

                        <f:GroupField HeaderText="1月" TextAlign="Center">
                            <Columns>
                                <f:BoundField Width="70px" DataField="M1MemberCount" HeaderText="人数" TextAlign="Center" />
                                <f:BoundField Width="70px" DataField="M1Cost" HeaderText="缴费" TextAlign="Center" />
                            </Columns>
                        </f:GroupField>

                        <f:GroupField HeaderText="2月" TextAlign="Center">
                            <Columns>
                                <f:BoundField Width="70px" DataField="M2MemberCount" HeaderText="人数" TextAlign="Center" />
                                <f:BoundField Width="70px" DataField="M2Cost" HeaderText="缴费" TextAlign="Center" />
                            </Columns>
                        </f:GroupField>
                        <f:GroupField HeaderText="3月" TextAlign="Center">
                            <Columns>
                                <f:BoundField Width="70px" DataField="M3MemberCount" HeaderText="人数" TextAlign="Center" />
                                <f:BoundField Width="70px" DataField="M3Cost" HeaderText="缴费" TextAlign="Center" />
                            </Columns>
                        </f:GroupField>
                        <f:GroupField HeaderText="4月" TextAlign="Center">
                            <Columns>
                                <f:BoundField Width="70px" DataField="M4MemberCount" HeaderText="人数" TextAlign="Center" />
                                <f:BoundField Width="70px" DataField="M4Cost" HeaderText="缴费" TextAlign="Center" />
                            </Columns>
                        </f:GroupField>
                        <f:GroupField HeaderText="5月" TextAlign="Center">
                            <Columns>
                                <f:BoundField Width="70px" DataField="M5MemberCount" HeaderText="人数" TextAlign="Center" />
                                <f:BoundField Width="70px" DataField="M5Cost" HeaderText="缴费" TextAlign="Center" />
                            </Columns>
                        </f:GroupField>
                        <f:GroupField HeaderText="6月" TextAlign="Center">
                            <Columns>
                                <f:BoundField Width="70px" DataField="M6MemberCount" HeaderText="人数" TextAlign="Center" />
                                <f:BoundField Width="70px" DataField="M6Cost" HeaderText="缴费" TextAlign="Center" />
                            </Columns>
                        </f:GroupField>
                        <f:GroupField HeaderText="7月" TextAlign="Center">
                            <Columns>
                                <f:BoundField Width="70px" DataField="M7MemberCount" HeaderText="人数" TextAlign="Center" />
                                <f:BoundField Width="70px" DataField="M7Cost" HeaderText="缴费" TextAlign="Center" />
                            </Columns>
                        </f:GroupField>
                        <f:GroupField HeaderText="8月" TextAlign="Center">
                            <Columns>
                                <f:BoundField Width="70px" DataField="M8MemberCount" HeaderText="人数" TextAlign="Center" />
                                <f:BoundField Width="70px" DataField="M8Cost" HeaderText="缴费" TextAlign="Center" />
                            </Columns>
                        </f:GroupField>
                        <f:GroupField HeaderText="9月" TextAlign="Center">
                            <Columns>
                                <f:BoundField Width="70px" DataField="M9MemberCount" HeaderText="人数" TextAlign="Center" />
                                <f:BoundField Width="70px" DataField="M9Cost" HeaderText="缴费" TextAlign="Center" />
                            </Columns>
                        </f:GroupField>
                        <f:GroupField HeaderText="10月" TextAlign="Center">
                            <Columns>
                                <f:BoundField Width="70px" DataField="M10MemberCount" HeaderText="人数" TextAlign="Center" />
                                <f:BoundField Width="70px" DataField="M10Cost" HeaderText="缴费" TextAlign="Center" />
                            </Columns>
                        </f:GroupField>
                        <f:GroupField HeaderText="11月" TextAlign="Center">
                            <Columns>
                                <f:BoundField Width="70px" DataField="M11MemberCount" HeaderText="人数" TextAlign="Center" />
                                <f:BoundField Width="70px" DataField="M11Cost" HeaderText="缴费" TextAlign="Center" />
                            </Columns>
                        </f:GroupField>
                        <f:GroupField HeaderText="12月" TextAlign="Center">
                            <Columns>
                                <f:BoundField Width="70px" DataField="M12MemberCount" HeaderText="人数" TextAlign="Center" />
                                <f:BoundField Width="70px" DataField="M12Cost" HeaderText="缴费" TextAlign="Center" />
                            </Columns>
                        </f:GroupField>
                    </Columns>
                    <PageItems>
                        <f:ToolbarSeparator ID="ToolbarSeparator2" runat="server">
                        </f:ToolbarSeparator>
                        <f:ToolbarText ID="ToolbarText2" runat="server" Text="每页记录数：">
                        </f:ToolbarText>
                        <f:DropDownList ID="ddlGridPageSizeTotal" Width="80px" AutoPostBack="true" OnSelectedIndexChanged="ddlGridPageSizeTotal_SelectedIndexChanged"
                            runat="server">
                            <f:ListItem Text="10" Value="10" />
                            <f:ListItem Text="20" Value="20" />
                            <f:ListItem Text="50" Value="50" />
                            <f:ListItem Text="100" Value="100" />
                        </f:DropDownList>
                    </PageItems>
                </f:Grid>
            </Items>
        </f:Panel>
        <f:Window ID="Window1" CloseAction="Hide" runat="server" IsModal="true" Hidden="true" Target="Top"
            EnableResize="true" EnableMaximize="true" EnableIFrame="true" IFrameUrl="about:blank"
            Width="600px" Height="250px" OnClose="Window1_Close">
        </f:Window>
        <f:Window ID="Window2" CloseAction="Hide" runat="server" IsModal="true" Hidden="true" Target="Top"
            EnableResize="true" EnableMaximize="true" EnableIFrame="true" IFrameUrl="about:blank"
            Width="600px" Height="600px" OnClose="Window1_Close">
        </f:Window>
    </form>
</body>
</html>
